package exam.listener;

import org.springframework.context.ApplicationEvent;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/4/3 19:35
 * @since JDK 1.8
 */
public class MyEvent extends ApplicationEvent {

    private Object data;

    public MyEvent(Object source,Object data) {
        super(source);
        this.data=data;
    }

    public Object getData(){
        return data;
    }
}
